<!-- saved from url=(0022)http://internet.e-mail -->
<%@ page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Purchase Summary</title>
<style type="text/css">
<!--
.style3 {
	font-family: Arial;
	font-size: 12px;
}
-->
</style>
</head>
<body>
	  <table width="100%" height = "30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFBF0">
<%
int dLoop=0;
ResultSet Rs = task.fetchSampleSentList();

int R_id = 0;
String Colour="";
float pending = 0;
float unfixed = 0;
Rs.beforeFirst();
if (Rs.next()==true)
{
Rs.beforeFirst();
while (Rs.next())
{
		R_id = Rs.getInt("id");
		if (Rs.getInt("DtsId") > 0)	
		{	

%>

        <tr id=<%=R_id%> onDblClick="cardViewClick(this);" onClick="highlightOn(this);">
          <td width="4%" height="31" align="center"><span class="style3"><%=Rs.getInt("id")%></span></td>
          <td width="8%" align="center"><span class="style3"><%=Rs.getString("ref_number")%></span></td>
          <td width="6%" align="center"><span class="style3"><%=Utils.dateToStr(Rs.getDate("sent_received_date"))%></span></td>
          <td width="9%" align="center"><span class="style3"><%=task.getFieldValueForId("company_master","name",Rs.getInt("buyer_seller_id"))%></span></td>
          <td width="5%" align="center"><span class="style3"><%=task.getCategory(Rs.getInt("sample_category_id"))%></span></td>
          <td width="11%" align="center"><span class="style3"><%=Rs.getString("contract_ref_no")%></span></td>
          <td width="8%" align="center"><span class="style3"><%=Rs.getString("buyer_ref_no")%></span></td>
          <td width="7%" align="center"><span class="style3"><%=Rs.getString("location")%></span></td>
          <td width="6%" align="center"><span class="style3"><%=Rs.getString("wn_ref_no")%></span></td>
          <td width="7%" align="center"><span class="style3"><%=task.getFieldValueForId("origin_master","name",Rs.getInt("origin_id"))%></span></td>
          <td width="19%" align="center"><span class="style3"><%=task.getFieldValueForId("grade_master","name",Rs.getInt("grade_id"))%></span></td> 
          <td width="4%" align="center"><span class="style3"><%=Rs.getFloat("contract_ton")%></span></td>
          <td width="6%" align="center"><span class="style3"><%=Rs.getInt("approved_reject")%></span></td>
        </tr>
<%
		}
		else
		{
%>
        <tr id=<%=R_id%> onDblClick="cardViewClick(this);" onClick="highlightOn(this);">
          <td width="4%" align="center"><span class="style3"><%=Rs.getInt("id")%></span></td>
          <td width="8%" align="center"><span class="style3"><%=Rs.getString("ref_number")%></span></td>
          <td width="6%" align="center"><span class="style3"><%=Utils.dateToStr(Rs.getDate("sent_received_date"))%></span></td>
          <td width="9%" align="center"><span class="style3"><%=task.getFieldValueForId("company_master","name",Rs.getInt("buyer_seller_id"))%></span></td>
          <td width="5%" align="center"><span class="style3">-</span></td>
          <td width="11%" align="center"><span class="style3">-</span></td>
          <td width="8%" align="center"><span class="style3">-</span></td>
          <td width="7%" align="center"><span class="style3">-</span></td>
          <td width="6%" align="center"><span class="style3">-</span></td>
          <td width="7%" align="center"><span class="style3">-</span></td>
          <td width="19%" align="center"><span class="style3">-</span></td>
          <td width="4%" align="center"><span class="style3">-</span></td>
          <td width="6%" align="center"><span class="style3">-</span></td>
        </tr>

<%	
		}	
		dLoop=dLoop+1;
}
}
%>
</table>
</body>
</html>
